A Trajectory Analysis using the ICESat2 Satellite¶
Overview of the steps involved:
Get very high-fidelity orbit trajectory information of the primary satellite:
This can be done using a POD-reduced dynamics run in which all empirical accelerations and other parameters are used to compensate for any mismodelled forces.
This has already been done for our purposes.
Do a run of GEODYN in which the orbit trajectory IS the tracking datatype (PCE).
Use this run type to do all density model assessments
The residuals will be the difference from the truth.
Methods for assessing the density models (using trajectory run type):
General fit (residuals and RMS)
Arc overlap
If any arcs overlap, look at how well different density models provide consistency between overlapping arcs
Test of prediction - Do a fit from t1 to t2 and then predict to some t3. If the density model is better, the difference between predicted orbit (t2 to t3) and the precise trajectory (PCE data) will contain how well the model is doing.
Read GEODYN Output using PygeodynRead functionality¶
Get MSIS2 Data¶
[1]:
# Clear the memory of the notebook because the saved variables get so large:
# %reset -f out
[2]:
%load_ext autoreload
%autoreload 2
import sys
sys.path.insert(0, '/data/geodyn_proj/pygeodyn/utils_pygeodyn_develop/')
from PYGEODYN import Pygeodyn
#------ A dictionary containing the run parameters ------
run_params1 = {}
run_params1['arc'] = ['2018.313',
'2018.314',
'2018.315',
'2018.316',
'2018.317',
]
run_params1['satellite'] = 'icesat2'
run_params1['den_model'] = 'msis2'
run_params1['SpecialRun_name'] = '_TrajAnalysis_1'
run_params1['verbose'] = False
run_params1['action'] = 'read'
run_params1['request_data'] = ['AdjustedParams',
# 'Trajectory_xyz',
'Trajectory_orbfil',
'Density',
'Residuals_obs',
'Residuals_summary',
'Statistics',
]
Obj_Geodyn1 = Pygeodyn(run_params1)
Obj_Geodyn1.getData()
1a ---- check -- init Pygeodyn class
......... READ GEODYN output
icesat2
inherit Satellite_ICESat2
3 icesat ---- check ---- init Satellite_ICESat2 class
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018313_54hr.msis2
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018314_54hr.msis2
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018315_54hr.msis2
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018316_54hr.msis2
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018317_54hr.msis2
Get MSIS00 Data¶
[3]:
%load_ext autoreload
%autoreload 2
from PYGEODYN import Pygeodyn
import copy
run_params2 = copy.deepcopy(run_params1)
run_params2['den_model'] = 'msis00'
Obj_Geodyn2 = Pygeodyn(run_params2)
Obj_Geodyn2.getData()
The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload
1a ---- check -- init Pygeodyn class
......... READ GEODYN output
icesat2
inherit Satellite_ICESat2
3 icesat ---- check ---- init Satellite_ICESat2 class
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018313_54hr.msis00
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018314_54hr.msis00
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018315_54hr.msis00
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018316_54hr.msis00
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018317_54hr.msis00
Get MSIS86 Data¶
[4]:
%load_ext autoreload
%autoreload 2
from PYGEODYN import Pygeodyn
# import copy
run_params3 = copy.deepcopy(run_params1)
run_params3['den_model'] = 'msis86'
Obj_Geodyn3 = Pygeodyn(run_params3)
Obj_Geodyn3.getData()
The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload
1a ---- check -- init Pygeodyn class
......... READ GEODYN output
icesat2
inherit Satellite_ICESat2
3 icesat ---- check ---- init Satellite_ICESat2 class
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018313_54hr.msis86
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018314_54hr.msis86
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018315_54hr.msis86
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018316_54hr.msis86
4 icesat ---- check ---- init set_file_paths_for_multiple_arcs class
Loading ... icesat2_2018317_54hr.msis86
Analyze output¶
Our analysis has the following output products:
Residuals of the POD across many arcs
RMS of fit of the POD across many arcs
Adjustment of the drag coefficient (drag acceleration to compensate for inaccuracies in the density model.)
Check of consistency (in the residuals) across overlapping arc times
RMS of the overlapping residual difference (this removes the PCE contribution) Using the
Orbfil:From ORBFIL grab the overlapping ephemeris and difference the two models. Compare this against the same of prediction
How well does the predicted time period match up with the determined ephemeris (see this in the resids of the two).
Calculate and plot the radial component of the trajectory
[5]:
import plotly.graph_objects as go
from plotly.offline import plot, iplot
from plotly.subplots import make_subplots
import plotly.express as px
config = dict({
'displayModeBar': True,
'responsive': False,
# 'staticPlot': True,
'displaylogo': False,
'showTips': False,
})
1. Residuals of the POD across many arcs¶
Resids = PCE - POD Trajectory
[6]:
%load_ext autoreload
%autoreload 2
from PYGEODYNAnalysis_icesat2PCEtrajectory import plot_residual_meas_summary
from PYGEODYNAnalysis_icesat2PCEtrajectory import rms_summary_table
Obj_list = [Obj_Geodyn1,Obj_Geodyn2,Obj_Geodyn3,]
rms_summary_table(Obj_list)
fig = make_subplots(rows=2, cols=1,
subplot_titles=(["Mean Residuals per Arc", 'RMS of Fit per Arc']),
vertical_spacing = 0.1)
fig = plot_residual_meas_summary(fig, Obj_Geodyn2, 0)
fig = plot_residual_meas_summary(fig, Obj_Geodyn3, 1)
fig = plot_residual_meas_summary(fig, Obj_Geodyn1, 2)
fig.show(config=config)
The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload
+———————————————————+—————————————————————————+————————————————+
| Summary Across all Arcs |
+———————————————————+—————————————————————————+————————————————+
+ Density Model + Mean Residual (cm) + RMS of Fit +
+-------------------+-------------------------+----------------+
+ msis2 + -4.54000e+01 + 1.82780e-01 +
+ msis00 + 6.96000e+01 + 2.13820e-01 +
+ msis86 + 1.24200e+02 + 3.06520e-01 +
+———————————————————+—————————————————————————+————————————————+
[7]:
%load_ext autoreload
%autoreload 2
from PYGEODYNAnalysis_icesat2PCEtrajectory import plot_residuals_observed
fig = make_subplots(rows=3, cols=1,
subplot_titles=(['X', 'Y', 'Z']),
vertical_spacing = 0.1,
)
fig = plot_residuals_observed(fig, Obj_Geodyn2, 0)
fig = plot_residuals_observed(fig, Obj_Geodyn3, 1)
fig = plot_residuals_observed(fig, Obj_Geodyn1, 2)
fig.update_layout(title="Observation Residuals (PCE - Observed , T.O.R.)")
fig.show(config=config)
The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload